home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / glimpse-2.1 / defs.h < prev    next >
Text File  |  1995-05-16  |  1KB  |  17 lines

  1. #define MAX_ARGS    80    /* English alphabets + numbers + pattern + progname + arguments + extras */
  2. #define MAXFILEOPT    1024    /* includes length of args too: #args is <= MAX_ARGS */
  3. #define BLOCKSIZE    8192    /* For compression: what is the optimal unit of disk i/o = n * pagesize */
  4.  
  5. /*
  6.  * These are some parameters that allow us to switch between offset computation
  7.  * and just index computation when the index is built at a byte-level: since
  8.  * offset computation is a waste if we can't narrow down search enough (since
  9.  * we must look all over and the lists become too long => bottleneck). Even
  10.  * if we narrow down the search too much, agrep on a few files is faster.
  11.  */
  12.  
  13. #define MAX_DISPARITY    100    /* if least frequent word occurrs in < 1/100 times most frequent word, resort to agrep: don't intersect lists (byte-level) */
  14. #define MIN_OCCURRENCES    20    /* If the least frequent word occurs in < 20 places, resort to agrep: don't intersect lists */
  15. #define MAX_UNION    500    /* Don't even perform the Union of offsets if least < 1/500 times most freq word */
  16. #define MAX_ABSOLUTE    100    /* ^^^^ if word occurs in more than 100 times per file on average (too slow to stat them and find sizes as in glimpseindex) */
  17.